<html>
<head>

<style>
#test
{
	border-width: 20px;
	-webkit-border-image: url("img/border.png") 20;
	-moz-border-image: url("img/border.png") 20;
	border-image: url("img/border.png") 20;

}
</style>

</head>
<body>
<div id="test" style="margin-top: 40px; width: 40px;" >test</div>
</body>
</html>